﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
    $(function () {
        calendarioGeneral('dFecInicio', '0');
        calendarioGeneral('dFecFin', '1');
        inicioPopPupModal("#divPopupJQ", 150, 220, "RECEPCION FISICA");
        inicioPopPupModal("#divPopup1JQ", 450, 520, "RECEPCION FISICA");
        inicioPopPupModal("#divPopupAdjuntoJQ", 250, 700, "LISTADO DE ARCHIVOS ADJUNTOS");
        var rpta = '@ViewBag.rpta';
        //alert(rpta);
        if (rpta !== '1') {
            $("#btnFiltrar").click();
        }
    });
</script>
<div id="divPopupAdjuntoJQ"></div>
<center>
    <form style="margin-left:3px;margin-right: 3px; padding:0px;" method="post" target="_top" action=""  enctype = "multipart/form-data" >
    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" class="tablaInterna">
    <tbody class="tituloWhite8" >
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td style="width: 320px;">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tbody class="tituloWhite8">
                                    <tr>
                                        <td><div id="tituloBandeja"><b><em>BANDEJA:</em></b></div></td>
                                        <td>
                                            @Html.DropDownList("nIdeItem", (IEnumerable<SelectListItem>)ViewBag.optionBandejaUsuario, new { @class = "select8", onchange="javascript:cambiaDeBandeja(this);"})                                            
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td align="right">
                            <img src="@Url.Content("~/images/avanzada.gif")" alt="BUSQUEDA AVANZADA" title="BUSQUEDA AVANZADA"  onclick="javascript:buscarEnMiBandeja('#divPopup1JQ');" />
                        </td>
                        <td align="center" style="width: 620px;">
                            <div id="menuBandeja">
                                <table border="0" style="width: 340px;" cellspacing="0" cellpadding="0">
                                    <tbody class="tituloLinkBand8">
                                        <tr align="center">                                           
                                            <td>
                                                <input type="button" name="btnRecepFisica" id="btnRecepFisica" style="width: 102px;" class="boton" value="Recepci&oacute;n F&iacute;sica" onclick="javascript: recepcionFisicaLote('#divPopupJQ');" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>                            
                        </td>
                        
                    </tr>
                </table>
            </td>
        </tr>
        <tr style="background-color: #ffffff;">
            <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody class="tituloCelesteB8">
                    <tr>
                        <td style="width: 30%;">
                            <div id="divTipoBandeja"> @ViewBag.tipoBandeja</div>
                        </td>
                        <td style="width: 37%;">
                            <table border="0" cellpadding="0" cellspacing="0" class="tituloTextNormal" style="width: 350px;">
                                <tr>
                                    <td>Fecha inicio</td>
                                    <td>:</td>
                                    <td><input type="text" id="dFecInicio" maxlength="10"  value="31/10/2013" name  ="dFecInicio" ondblclick="javascript:limpiaCaja(this);" style="width: 60px;"     /></td>
                                    <td>&nbsp;</td>
                                    <td>Fecha fin</td>
                                    <td>:</td>
                                    <td><input id="dFecFin" maxlength="10" name="dFecFin" ondblclick="javascript:limpiaCaja(this);" style="width: 60px;" type="text" /></td>
                                    <td><input type="button" name="btnFiltrar" id="btnFiltrar" style="width: 42px;" class="boton" value="filtrar" onclick="javascript: filtraPorFecha(this, '#divDetBandeja','1');" /></td>
                                </tr>                                                
                            </table>
                        </td>
                        <td style="width: 33%;" align="right">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        @Html.DropDownList("nIdeClaseSolicitud", (IEnumerable<SelectListItem>)ViewBag.ClaseTramite)
                                    </td>
                                    <td>:</td>
                                    <td><input type="text" name="nIdeDepSolicitud" id="nIdeDepSolicitud" style="width: 40px;" value=""    maxlength="4" onkeypress = "return validarSoloNumeros(event);" ondblclick = "javascript:limpiaCaja(this);"/></td>
                                    <td>-</td>
                                    <td><input type="text" name="nAnnSolicitud" id="nAnnSolicitud" style="width: 40px;"     value   ="@String.Format("{0:yyyy}", DateTime.Now)" maxlength="4" onkeypress = "return validarSoloNumeros(event);" ondblclick = "javascript:limpiaCaja(this);"/></td>
                                    <td>-</td>
                                    <td><input type="text" name="nNumCorre" id="nNumCorre" style="width: 40px;" maxlength="4" value="" onkeypress = "return validarSoloNumeros(event);" ondblclick="javascript:limpiaCaja(this);" /></td>
                                    <td>&nbsp;</td>
                                    <td><input type="button" name="btnBuscar" id="btnBuscar" style="width: 50px;" class="boton" value="Buscar" onclick="javascript: buscarPorNIT(this, '#divDetBandeja','1');" /></td>
                                </tr>
                            </table>
                        </td>
                   </tr>
                </tbody>
                </table>
           </td>
         </tr>
    </tbody>
    </table>
    <div id="divDetBandeja"></div>
    <div id="divDetDerivacion"></div>
    <div id="divRpta">
        @if ((@ViewBag.rpta).Equals("1"))
        {
            <span class="letramensajes">Se Derivó el Trámite Satisfactoriamente</span>
        }
    </div>
    <div id="divPopupJQ"></div>
    <div id="divPopup1JQ"></div> 
     <div id="divPopup2JQ"></div>   
           
    </form>
</center>